Skip to content

Add PyPI publish workflow#65

Merged
aazuspan merged 1 commit intomainfrom
publish-ci
May 2, 2025
Merged

Add PyPI publish workflow#65
aazuspan merged 1 commit intomainfrom
publish-ci

Conversation

@aazuspan
Copy link
Copy Markdown
Owner

@aazuspan aazuspan commented May 2, 2025

Related issue

Description

Sets up automatic publishing to PyPI on tag pushes.

See https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

Checklist

  • I have updated the CHANGELOG with any added features, changes, fixes, or removals.

@aazuspan aazuspan requested a review from Copilot May 2, 2025 20:54
@aazuspan aazuspan self-assigned this May 2, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a GitHub Actions workflow to automate publishing packages to PyPI whenever a tag is pushed.

  • Adds a build job to construct the package distribution using Hatch.
  • Adds a publish job to retrieve the artifact and publish it to PyPI.

- name: Install hatch
run: |
python -m pip install --upgrade pip
pip install hatch
Copy link

Copilot AI May 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider using 'python -m pip install hatch' instead of 'pip install hatch' to ensure that the pip used is associated with the intended Python interpreter.

Suggested change
pip install hatch
python -m pip install hatch

Copilot uses AI. Check for mistakes.
@aazuspan aazuspan merged commit 6a2de9b into main May 2, 2025
6 checks passed
@aazuspan aazuspan deleted the publish-ci branch May 2, 2025 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants